package com.yami.shop.user.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.bo.PayInfoResultBO;
import com.yami.shop.bean.model.PayInfo;
import com.yami.shop.common.bean.PageDTO;
import com.yami.shop.common.bean.PageVO;
import com.yami.shop.common.response.ServerResponseEntity;
import com.yami.shop.user.common.model.UserGasLog;
import com.yami.shop.user.common.model.UserLevelLog;

public interface UserGasLogService extends IService<UserGasLog> {

    /**
     * GAS充值回调
     * @param payInfoResultBO
     * @param payInfo
     * @return
     */
    ServerResponseEntity<String> noticeGasRecharge(PayInfoResultBO payInfoResultBO, PayInfo payInfo);

    PageVO<UserGasLog> getGasDetailed(PageDTO pageDTO, String year, String month, String userId);

    UserGasLog getGasPayInfoByUserId(String userId);


    /**
     * 划转6转增3 登记  10 产权登记 11分享鉴赏
     * @param userId
     * @param gasNumber
     */
    void saveGasNumberThansferByUserId(String userId,int gasNumber,Integer type,String channelCode,String chainCode,String toUserId);

    /**
     * 划转转增能量值
     * @param userId
     * @param gasNumber
     */
    void reduceGasNumberThansferByUserId(String userId,int gasNumber,Integer type,String channelCode,String chainCode,String toUserId);
}
